Add {Concrete Shell Design List}

Add {Concrete Shell Design List}

Syntax

SapObject.SapModel.DesignConcreteShell.DesignRequest.Add

VB6 Procedure

Function Add(ByVal RequestName As String, ByVal GroupList() As String, ByVal ComboList() As String, ByVal AutoCombo As Boolean, ByVal AutoComboCaseList() As String) As Long

Parameters

RequestName

The name of a new concrete shell design request. It may be the same as any existing design request.

GroupList

This is an array that has the name of the groups to be added in the new design request.

ComboList

This is an array that has the name of the load combinations to be added in the new design request.

AutoCombo

If this item is True, the code-based design load combinations for concrete shell design are automatically generated based on the list of load cases in the AutoComboCaseList and included in the design request. If it is False, the code-based design load combinations will not be included in the design request.

AutoComboCaseList

This is an array that has the name of the load cases used to automatically generate code-based design load combinations.

Remarks

This function adds a new concrete shell design request.

The function returns zero if the design request is successfully removed; otherwise it returns a nonzero value.

The function will fail if the RequestName does not exist.

The function is not applicable for the Eurocode 2-2004 concrete shell design code.

VBA Example

Sub AddConcreteShellDesignRequest()

 'dimension variables

 Dim SapObject as cOAPI

 Dim SapModel As cSapModel

 Dim ret As Long

 'create Sap2000 object

 Set SapObject = CreateObject("CSI.SAP2000.API.SapObject")

 'start Sap2000 application

 SapObject.ApplicationStart

 'create SapModel object

 Set SapModel = SapObject.SapModel

 'initialize model

ret = SapModel.InitializeNewModel(eUnits.kip_in_F)

'create a wall model from template

ret = SapModel.File.NewWall(6, 4, 6, 4)

'initialize new material property

ret = SapModel.PropMaterial.SetMaterial("Rebar", eMatType.Rebar)

'assign other properties

ret = SapModel.PropMaterial.SetORebar_1("Rebar", 62, 93, 70, 102, 2, 2, 0.02, 0.1, -0.1, False)

'set new area property

ret = SapModel.PropArea.SetShell_1("A1", 1, True, "4000Psi", 0, 16, 16)

'set area property design parameters

ret = SapModel.PropArea.SetShellDesign("A1", "Rebar", 2, 2, 3, 2.5, 3.5)

'set area property

ret = SapModel.AreaObj.SetProperty("4", "A1")

'define new group

ret = SapModel.GroupDef.SetGroup("GROUP1")

ret = SapModel.GroupDef.SetGroup("GROUP2")

ret = SapModel.GroupDef.SetGroup("GROUP3")

ret = SapModel.GroupDef.SetGroup("GROUP4")

ret = SapModel.AreaObj.SetGroupAssign("1", "GROUP1")

ret = SapModel.AreaObj.SetGroupAssign("2", "GROUP2")

ret = SapModel.AreaObj.SetGroupAssign("3", "GROUP3")

ret = SapModel.AreaObj.SetGroupAssign("4", "GROUP4")

'add new load pattern

ret = SapModel.LoadPatterns.Add("Fluid", eLoadPatternType.EarthHydrostatic)

'add point load

Dim LoadValue() As Double

ReDim LoadValue(5)

LoadValue(1) = 10

ret = SapModel.PointObj.SetLoadForce("14", "DEAD", LoadValue)

'add combo

ret = SapModel.RespCombo.Add("COMB1", 1)

ret = SapModel.RespCombo.Add("COMB2", 1)

ret = SapModel.RespCombo.Add("COMB3", 1)

ret = SapModel.RespCombo.Add("COMB4", 1)

'add load case to combo

ret = SapModel.RespCombo.SetCaseList("COMB1", eCNameType.LoadCase, "DEAD", 1.1)

ret = SapModel.RespCombo.SetCaseList("COMB1", eCNameType.LoadCase, "DEAD", 1.2)

ret = SapModel.RespCombo.SetCaseList("COMB1", eCNameType.LoadCase, "DEAD", 1.3)

ret = SapModel.RespCombo.SetCaseList("COMB1", eCNameType.LoadCase, "DEAD", 1.4)

'set concrete shell design code

ret = SapModel.DesignConcreteShell.SetCode("ACI 350-20")

create concrete shell design request

Dim RequestName As String

Dim GroupList() As String

Dim ComboList() As String

Dim AutoCombo As Boolean

Dim AutoComboCaseList() As String

Dim NewName As String

Dim NumberRequest As Integer

Dim RequestList() As String

Dim NumberGroup As Integer

Dim NumberCombo As Integer

RequestName = "R1"

ReDim RequestList(1)

RequestList(0) = ""

RequestList(1) = ""

ReDim GroupList(1)

ReDim ComboList(1)

ReDim AutoComboCaseList(2)

GroupList(1) = "GROUP1"

ComboList(1) = "COMB1"

AutoCombo = True

AutoComboCaseList(1) = "DEAD"

AutoComboCaseList(2) = "Fluid"

add new concrete shell design request

ret = SapModel.DesignConcreteShell.DesignRequest.Add(RequestName, GroupList, ComboList, AutoCombo, AutoComboCaseList)

 'close Sap2000

 SapObject.ApplicationExit False

 Set SapModel = Nothing

 Set SapObject = Nothing

 End Sub

Release Notes

Initial release in version 26.0.0

See Also